package com.qdxwx.data.mapper.manager;

import com.qdxwx.common.page.PageRequest;
import com.qdxwx.models.manager.Post;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 岗位信息 数据层
 * Qdx NetSchool Platform
 * @author qdxwx
 * @updateTime 2022/5/25
 * @description
 */
@Repository
public interface PostMapper {
     List<Post> selectList(@Param("e") Post post, @Param("page") PageRequest page);

     int selectCount(@Param("e") Post post);

     List<Post> selectPostsByManagerId(int managerId);

     Post selectPostById(Integer postId);

     int deletePostByIds(Integer[] ids);

     int updatePost(Post post);

     int updateDisabled(@Param("e") Post post);

     int insertPost(Post post);

     Post checkPostNameUnique(String postName);

     Post checkPostCodeUnique(String postCode);

}
